//
//  NSObject+GetValue.h
//  ProjectDemo
//
//  Created by IOS3 on 2018/10/22.
//  Copyright © 2018 IOS3. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (GetValue)



/**
 数组根据index取值, 非数组或者取不到值返回nil
 */
- (NSObject *(^)(NSInteger))valueWithIndex;



/**
 字典q根据key取值, 非字典或取不到值返回nil
 */
- (NSObject *(^)(NSString *))valueWithKey;


/// 是不是空
- (BOOL)isEmpty;

@end

NS_ASSUME_NONNULL_END
